xsm, python tools: remove autogenerated xsm.py
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Sep 2008 10:23:08 +0000 (11:23 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Sep 2008 10:23:08 +0000 (11:23 +0100)
commit06cfe5df7bdadd1972619d26127bd18a56a1db04
treeccec33b0596f66e36e9fb824909438ba124b67cb
parente4e909d6e2ce5884133b3aaef13dc65fa9d244ba
xsm, python tools: remove autogenerated xsm.py

- The patch does away with the autogenerated xsm.py file and
introduces a config parameter in xend-config.sxp to determine the
security module. The parameter is (xsm_module_name {acm, dummy,
flask}).  The default setting/option is dummy.  .hgignore is also
updated to stop ignoring xsm.py on commits.

- The patch has created an xsconstant for XS_POLICY_FLASK and updated
  the toolchain to check the instance of XS_POLICY_USE.  XS_POLICY_USE
  evalauates to XS_POLICY_FLASK or XS_POLICY_ACM or XS_POLICY_DUMMY
  depending on configuration.

- Flask relies on the current value of ssidref returned by dominfo to
  ensure that the label to sid mapping is consistent.  ssidref had
  been pop'ed from the dominfo object.  The patch addresses this
  issue.

- Flask python module style cleanups.

Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
12 files changed:
.hgignore
tools/examples/xend-config.sxp
tools/python/Makefile
tools/python/xen/util/xsconstants.py
tools/python/xen/util/xsm/dummy/dummy.py
tools/python/xen/util/xsm/flask/flask.py
tools/python/xen/util/xsm/xsm.py [new file with mode: 0644]
tools/python/xen/xend/XendConfig.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/XendOptions.py
tools/python/xen/xend/server/blkif.py
tools/python/xen/xend/server/netif.py